package net.realsee.service.wcs.device;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.device.WcsPlcChannel;
import net.realsee.domain.wcs.device.bo.WcsPlcChannelBo;
import net.realsee.domain.wcs.device.vo.WcsPlcChannelVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 通道Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsPlcChannelService extends IService<WcsPlcChannel> {

    /**
     * 查询通道
     */
    WcsPlcChannelVo selectVoById(Long id);

    /**
     * 查询通道列表
     */
    TableDataInfo<WcsPlcChannelVo> selectVoPage(WcsPlcChannelBo bo, PageQuery pageQuery);

    /**
     * 查询通道列表
     */
    List<WcsPlcChannelVo> selectVoList(WcsPlcChannelBo bo);

    /**
     * 新增通道
     */
    Boolean insertByBo(WcsPlcChannelBo bo);

    /**
     * 修改通道
     */
    Boolean updateByBo(WcsPlcChannelBo bo);

    /**
     * 校验并批量删除通道信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
